x86: Code style in rdmsr_hypervisor_regs() is not consistent with
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 18 Jun 2007 15:52:04 +0000 (16:52 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 18 Jun 2007 15:52:04 +0000 (16:52 +0100)
wrmsr_hypervisor_regs(). Sync them up.
Signed-off-by: Shane Wang <shane.wang@intel.com>
xen/arch/x86/traps.c

index ec9738e9e371add3e56a0fc66d910345b88fe96d..f97ea5e940687870854c40476094c359d984cc5d 100644 (file)
@@ -462,7 +462,17 @@ int rdmsr_hypervisor_regs(
     if ( idx > 0 )
         return 0;
 
-    *eax = *edx = 0;
+    switch ( idx )
+    {
+    case 0:
+    {
+        *eax = *edx = 0;
+        break;
+    }
+    default:
+        BUG();
+    }
+
     return 1;
 }